package com.xmall.define.dto.product;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class SkuQuantity implements Serializable {

    /**
     * skuId
     */
    @NotNull(message = "选中的商品信息不全")
    private Long skuId;

    /**
     * 商品数量
     */
    @NotNull(message = "商品数量不能为空")
    @Min(value = 1, message = "商品数量最少为1个")
    private Integer quantity;
}
